﻿/*
 * Last review by   : Yaser
 * Last review date : JUL-25-09 
 */
using ERP.Framework.Components.Utilities.TracingHelper;

namespace ERP.Framework.Components.Utilities.ComparingHelper
{
    /// <summary>
    /// Compare between 2 objects
    /// </summary>
    public abstract class ComapringManager
    {
        #region Members

        private const string TRACING_CATEGORY = "ERP.Framework.Components.Utilities.ComparingHelper.ComapringManager";

        #endregion

        #region Methods

        /// <summary>
        /// Compares the types.
        /// </summary>
        /// <param name="obj1">The obj1.</param>
        /// <param name="obj2">The obj2.</param>
        /// <returns></returns>
        public static bool CompareTypes(object obj1, object obj2)
        {
            TraceUtil.Write(TRACING_CATEGORY, string.Format("CompareTypes : obj1:{0}obj2:{1}", obj1.ToString(), obj2.ToString()));
            return obj1.GetType().Equals(obj2.GetType());
        }

        #endregion
    }
}
